package com.supersoul.myself.dao;

import com.supersoul.myself.entity.Blog;
import com.supersoul.myself.entity.BlogCollection;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface BlogCollectionDao extends JpaRepository<BlogCollection, String >, JpaSpecificationExecutor<BlogCollection> {


    BlogCollection findByBlogIdAndCreatorId(String blogId, String creatorId);

    Page<BlogCollection> findByCreatorId(String id, Pageable pageable);
}
